package com.example.myapplication0629;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

public class IndexActivity extends AppCompatActivity
implements CallBacks{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_index);
    }

    @Override
    public void onItemSelected(int position) {
        Intent intent;
        switch (position){
            case 0:
            intent=new Intent(this,ItemActivity.class);
            startActivity(intent);

        }
    }
}
